package yxy.game.pm2.module.wuchao;

import yxy.game.pm2.bean.area.AreaBean;
import yxy.game.pm2.bean.module.AreaModule;
import yxy.game.pm2.bean.module.rank.PlayerRankModule;

public class RankWuchao extends PlayerRankModule {

	public RankWuchao(AreaBean areaBean) {
		super(areaBean);
	}

	@Override
	public String rankName() {
		return PlayerRankModule.getAllRankNames().get(14);
	}

	@Override
	protected long valuePlastic(long value) {
		return value * 1000;
	}

	@Override
	protected long valueRestore(long score) {
		return score / 1000;
	}

	static public RankWuchao getRank(String playerCode) {
		AreaBean areaBean = AreaModule.area(playerCode);
		return new RankWuchao(areaBean);
	}

	public void put(String playerCode, int stage, int explore) {
		long value = stage * 100 + explore;
		super.put(playerCode, value);
	}
}
